using System;
using Jandaya.Framework.Dialogs;
using Jandaya.Framework.Core.Pessoa;

namespace Jandaya.Framework.Core.Empresa
{
	public partial class Empresa : PessoaJuridica
	{
		public bool Load(Int64 ID){ 
			return new DAOEmpresa(this, this.Manager.Connections.GetConnection()).Load(ID);
		}	
		
		public bool LoadDefault(){
			return new DAOEmpresa(this, this.Manager.Connections.GetConnection()).LoadDefault();
		}
		
		public bool Save(){
			try {
				return new DAOEmpresa(this, this.Manager.Connections.GetConnection()).Save();
			}
			catch (Exception err){
				MsgDialog.ShowError(err.Message);
				return false;
			}
		}
		
	}
}

